import request from '@/utils/request'

// 查询边坡外貌情况巡检列表
export function listAppearance(query) {
  return request({
    url: '/slope/appearance/list',
    method: 'get',
    params: query
  })
}

// 查询边坡外貌情况巡检详细
export function getAppearance(id) {
  return request({
    url: '/slope/appearance/' + id,
    method: 'get'
  })
}

// 新增边坡外貌情况巡检
export function addAppearance(data) {
  return request({
    url: '/slope/appearance',
    method: 'post',
    data: data
  })
}

// 修改边坡外貌情况巡检
export function updateAppearance(data) {
  return request({
    url: '/slope/appearance',
    method: 'put',
    data: data
  })
}

// 删除边坡外貌情况巡检
export function delAppearance(id) {
  return request({
    url: '/slope/appearance/' + id,
    method: 'delete'
  })
}
